package com.eportal.ORM;

import java.sql.Timestamp;

/**
 * TLoanId entity. @author MyEclipse Persistence Tools
 */

public class TLoanId implements java.io.Serializable {

	// Fields

	private String TCard;
	private String TTermid;
	private Timestamp TCrDate;

	// Constructors

	/** default constructor */
	public TLoanId() {
	}

	/** full constructor */
	public TLoanId(String TCard, String TTermid, Timestamp TCrDate) {
		this.TCard = TCard;
		this.TTermid = TTermid;
		this.TCrDate = TCrDate;
	}

	// Property accessors

	public String getTCard() {
		return this.TCard;
	}

	public void setTCard(String TCard) {
		this.TCard = TCard;
	}

	public String getTTermid() {
		return this.TTermid;
	}

	public void setTTermid(String TTermid) {
		this.TTermid = TTermid;
	}

	public Timestamp getTCrDate() {
		return this.TCrDate;
	}

	public void setTCrDate(Timestamp TCrDate) {
		this.TCrDate = TCrDate;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TLoanId))
			return false;
		TLoanId castOther = (TLoanId) other;

		return ((this.getTCard() == castOther.getTCard()) || (this.getTCard() != null
				&& castOther.getTCard() != null && this.getTCard().equals(
				castOther.getTCard())))
				&& ((this.getTTermid() == castOther.getTTermid()) || (this
						.getTTermid() != null
						&& castOther.getTTermid() != null && this.getTTermid()
						.equals(castOther.getTTermid())))
				&& ((this.getTCrDate() == castOther.getTCrDate()) || (this
						.getTCrDate() != null
						&& castOther.getTCrDate() != null && this.getTCrDate()
						.equals(castOther.getTCrDate())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTCard() == null ? 0 : this.getTCard().hashCode());
		result = 37 * result
				+ (getTTermid() == null ? 0 : this.getTTermid().hashCode());
		result = 37 * result
				+ (getTCrDate() == null ? 0 : this.getTCrDate().hashCode());
		return result;
	}

}